import request from '@/utils/request'

export const listAllOrder = (jksid) =>
    request({
        url: '/tOrder/'+jksid,
        method: 'put'
})


export const yy = (zt,id) =>
request({
  url: '/tOrder/' + zt + "/id",
  method: 'put',
  params: {
      id: id
  }
})

export const yytc = (yyid,tcid,yydate,xgdate) =>
request({
  url: '/tOrder/' + yyid + "/tcid/"+yydate+"/xgdate",
  method: 'put',
  params: {
    tcid: tcid,
    yydate:yydate,
    xgdate:xgdate
  }
})


export const addOrder = (order) =>
request({
    url: '/tOrder',
    method: 'post',
    data: order
})

export const isOkYy = (yydate) =>
request({
    url: '/tOrder/'+yydate,
    method: 'post'
})

export const queryOrderByHyid = (hyid,num) =>
request({
    url: '/tOrder/'+hyid+"/num",
    method: 'post'
})

